package pl.edu.agh.mgr.hotel.main;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class Main {
	public static void main(String[] args) {
		
		List<String> wsNames = new ArrayList<String>();
		wsNames.add("http://localhost:8081/HotelWS/services/DataServicePort");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService1Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService2Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService3Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService4Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService5Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService6Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService7Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService8Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService9Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService10Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService11Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService12Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService13Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService14Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService15Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService16Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService17Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService18Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService19Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/D ataService20Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService21Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService22Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService23Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService24Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService25Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService26Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService27Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService28Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService29Port");
//		wsNames.add("http://localhost:8081/HotelWS/services/DataService30Port");

		int clientNr = 0;
		ExecutorService executor = Executors.newFixedThreadPool(wsNames.size());
		for (String wsName : wsNames) {
			executor.execute(new ClientThread("H" + clientNr, wsName));
			clientNr++;
		}		
		
		executor.shutdown();			
	}
}
